/**
 * 我的消息详情 - 编辑页面
 * @author shixc
 * @date 2018/02/27
 */
define(function () {

    var self,
        app = win.app,
        doc = document,
        fileList = [],
        callObj
    ;

    var Message_detail = app.Module.extend({
        init: function () {
            self = this;
            self._super({
                _tag: 'gwai880_edit'
            }, win);
            layui.use('form', function () {
                var form = layui.form;
            });
        },

        _call: function (obj) {
            app.ajax({
                xurl: 'crm/gwai880/getDetailData',
                xdata: {GWDI001: obj.GWDI001},
                async:false,
                cb: function (result) {
                    if (result.ok) {
                        $("#GWDI002").html(result.data.data.GWDI001 + ' ' + result.data.data.GWDI002);
                        $("#GWDI004").html(result.data.data.GWDI004);
                        $("#GWDI005").html(result.data.data.GWDI005);
                    }
                }
            });
            app.ajax({
                xurl: 'crm/gwai880/updateStatus',
                xdata: {GWDI001: obj.GWDI001},
                cb: function (result) {
                    if (result.ok) {

                    }
                }
            });
        },
        _ready: function () {
            var vue = new Vue({
                el: '#gwai880_edit',
                methods: {
                    cancel: function () {
                        layer.close(layer.index);
                    }
                },
                watch: {},
                created: function () {
                    self._setEleIsReady('gwai880_edit');
                }
            });
        },
        _lazy: function () {
            this._super();
        }
    });

    return new Message_detail();

});